package routers

import "github.com/astaxie/beego"
import "myapp/controllers"

func init() {

	beego.Router("/", &controllers.MainController{})
	beego.Router("/login", &controllers.LoginController{})
	beego.AutoRouter(&controllers.NewsController{})
	beego.AutoRouter(&controllers.CatController{})
	beego.Router("/article/detail/:id", &controllers.ArticleController{}, "*:Detail")
	beego.Router("/article/edit/:id", &controllers.ArticleController{}, "*:Edit")
	beego.Router("/article/delete/:id", &controllers.ArticleController{}, "*:Delete")
	beego.Router("/article/save", &controllers.ArticleController{}, "post:Save")
	beego.AutoRouter(&controllers.ArticleController{})
}
